#include "outdll2.h"
#include <dllWidgets.h>
outdll2::outdll2()
{
	widget = Q_NULLPTR;
}

outdll2::~outdll2()
{
	if (widget)
	{
		widget->deleteLater();
	}
}

void outdll2::setUIText()
{
	if (widget)
	{
		widget->setUIText("123");
	}
}

dllWidgets* outdll2::getWidget()
{
	if (widget == Q_NULLPTR) {
		widget = new dllWidgets();
	}
	return widget;
}
